<!DOCTYPE html>
<html>
  <!--
    Copyright 2009 Google Inc. All Rights Reserved.

    Use of this source code is governed by an Apache 2.0 License.
    See the COPYING file for details.
  -->

  <!-- Load this file into the browser to manually test all units. -->
  <head>
    <title>BidiChecker - Test All Units</title>

    <style>
      .warning {
      font-size: 14px;
      font-weight: bold;
      width: 80%;
      }
    </style>

    <!-- All *_test.html files to be tested. -->
    <script type="text/javascript">
      window.allTestFiles = [
          'bidichecker_test.html',
          'bidichecker_packaged_test.html',
          'bookmarklet_test.html',
          'dirchunk_test.html',
          'dirchunk_test.html',
          'dirchunkwalker_test.html',
          'domwalker_test.html',
          'error_test.html',
          'errorcollector_test.html',
          'filterfactory_test.html',
          'gui/common/commchannel_test.html',
          'gui/server/guiserver_test.html',
          'highlightableelement_test.html',
          'highlightabletext_test.html',
          'overalldirectionalitydetector_test.html',
          'spilloverdetector_test.html',
          'undeclaredfielddetector_test.html',
          'undeclaredtextdetector_test.html',
          'utils_test.html'
          ];
    </script>

    <script type="text/javascript" src="../third_party/closure-library/closure/goog/base.js">
    </script>

    <!-- Include the closure multi-test runner. -->
    <script type="text/javascript">
      goog.require('goog.testing.MultiTestRunner');
      goog.require('goog.userAgent.product');
    </script>
    <link rel="stylesheet"
          href="../third_party/closure-library/closure/goog/css/multitestrunner.css" type="text/css">
    <!-- Create a test runner. -->
    <script type="text/javascript">
      var runner = new goog.testing.MultiTestRunner().setName(document.title);
      runner.addTests(window.allTestFiles);
    </script>
  </head>

  <body>
    <script>
      if (goog.userAgent.product.CHROME &&
      window.location.toString().indexOf('file:') == 0) {
      document.write(
      '<div class="warning">' +
        'WARNING: Due to Chrome\'s security restrictions ' +
        'this test will not be able to load files off your local disk ' +
        'unless you start Chrome with:<br>' +
        '<code>--allow-file-access-from-files<\/code><\/div><br>');
      }
    </script>

    <h1>Test All Units</h1>

    <script type="text/javascript">
      runner.render();
      runner.start();
    </script>

  </body>
</html>
